﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DashFire.ResourceLoad;

namespace DashFire
{
  public class ResourceLoader
  {
    public static void LoadLevel(string url, System.Action<bool> callback = null,
            LoaderMode mode = LoaderMode.Async)
    {
      SceneLoader.Load(url, callback, mode);
    }

    public static void LoadAsset(string url, 
      Action<bool, UnityEngine.Object> callback = null, LoaderMode mode = LoaderMode.Async)
    {
      AssetFileLoader.Load(url, callback, mode);
    }
  }
}
